package com.example.demo;

import com.shanyuan.autoconfiguration.aspectlog.AspectLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @GetMapping("/hello")
    @AspectLog
    public String sayHello() throws InterruptedException {
        Thread.sleep(1000);
        return "hello";
    }

}
